package com.accp.ssmoa.service;

import java.util.List;
import com.accp.ssmoa.pojo.User;

public interface UserService {

	//获取部门分页信息
	public List<User> getPageUser(Integer startRow,
			Integer pageSize,Integer departmentid);
	
	//获取总数据条数
	public int getTotalsize(Integer departmentId);
	
	
	//根据id获取用户
	public User getUserById(Integer id);
	
	//根据用户名获取用户
	public User getUserByName(String name);
	
	//实现添加
	public int save(User user);
	
	
	//实现修改
	public int update(User user);
	
	//实现删除、批量删除
	public int delete(List<Integer> ids);
}
